<html>
<head>
<title>300px Body</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {color: #FF0000}
.style2 {color: #000000}
-->
.error_strings{ font-family:Verdana; font-size:10px; color:#660000;}
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (300px Body.jpg) -->
<script language="JavaScript" src="../logic/validation/validation.js" type="text/javascript"></script>
<script language="JavaScript" src="../logic/validation/subject_code_update.js" type="text/javascript"></script>
<table width="800" height="173" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
	<tr>
		<td><img src="../images/subcode_update.gif" width="800" height="69" alt=""></td>
	</tr>
	<tr >
		<td height="64" background="../images/2.gif" style="background-repeat:repeat-y">
    		<table width="750" border="0" cellspacing="0" cellpadding="0">
				<?php 
				$id=addslashes($_GET['edit']);
				$startrow=$_GET['startrow'];
				$tag=$_GET['tag'];
				include'../logic/Classes/db.php';
	
				$x=new Dbconnect();
				$con=$x->getConnection();
				$result=mysql_query("select subject,grade,c_fee from subject_code where sub_gr='$id'",$con) or die(mysql_error());  
				?>
	 			<?php
	  			while($row=mysql_fetch_array($result))
	  			{  
           		?>
		<form id="myForm" onSubmit="return validate()">
      	<tr >
        	<td width="98" height="25">&nbsp;</td>
        	<td width="184"><div align="right"><strong>Subject <span class="style1">*</span> </strong></div></td>
        	<td colspan="3"><input name="txtSubject" type="text" id="txtSubject" value="<?php echo $row['subject']; ?>">
          		<input name="txtId" type="hidden" id="txtId" value="<?php echo $id; ?>">
          		<input name="startrow" type="hidden" id="startrow" value="<?php echo $startrow;?>">
          		<input name="tag" type="hidden" id="tag" value="<?php echo $tag;?>"></td>
        	<td width="178">&nbsp;</td>
      </tr>
      <tr>
        <td height="19">&nbsp;</td>
        <td>&nbsp;</td>
        <td colspan="3">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="25">&nbsp;</td>
        <td><div align="right"><strong>Grade <span class="style1">*</span> </strong> </div></td>
        <td colspan="3"><input name="txtGrade" type="text" id="txtGrade" maxlength="2" value="<?php echo $row['grade']; ?>"></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="19">&nbsp;</td>
        <td>&nbsp;</td>
        <td colspan="3">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="25">&nbsp;</td>
        <td><div align="right"><strong>Fee </strong><span class="style1">*</span> </div></td>
        <td colspan="3"><input name="txtFee" type="text" id="txtFee" value="<?php echo $row['c_fee'];?>"></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="19">&nbsp;</td>
        <td>&nbsp;</td>
        <td colspan="3"><div  id="ajaxDiv" class="error_strings"></div></td>
        <td>&nbsp;</td>
      </tr>
	  
	  <?php } ?>
      <tr>
        <td height="25">&nbsp;</td>
        <td>&nbsp;</td>
        <td width="79"><input type="submit" name="Submit" value="Update" ></td>
        <td width="77"><input type="reset" name="Submit2" value="Back" onClick="backxx()"> </td>
        <td width="134">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
	  </Form>
    </table>
	</td>
	
	</tr>
	
	<tr>
		<td>
			<img src="../images/3.gif" width="800" height="40" alt=""></td>
	</tr>
</table>

<!-- End ImageReady Slices -->
</body>
</html>